﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using IceDog.UpdateDB.IRepository;
using IceDog.UpdateDB.Model;
using IceDog.UpdateDB.Model.SingleModel;
using IceDog.UpdateDB.Repository;
using Microsoft.AspNetCore.Mvc;

namespace IceDog.UpdateDB.WebServer.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class OSInfosController : ControllerBase
    {
        private readonly WindowsOSInfo _windowsOSInfo;
        public OSInfosController(WindowsOSInfo windowsOSInfo)
        {
            _windowsOSInfo = windowsOSInfo;
        }

        [HttpGet]
        public ActionResult<WindowsOSInfo> GetWindowsInfo()
        {
            return _windowsOSInfo;
        }
    }
}
